Revision: kernel-package--devel--9.0--patch-18
Archive: srivasta@debian.org--etch
Creator: Manoj Srivastava <srivasta@debian.org>
Date: Fri Jul 15 16:20:24 CDT 2005
Standard-date: 2005-07-15 21:20:24 GMT
Modified-files: kernel/ChangeLog kernel/image.postinst
New-patches: srivasta@debian.org--etch/kernel-package--devel--9.0--patch-18
Summary: Refactored image.postinst for clarity.
Keywords: 

* kernel/image.postinst (really_move_image): Added.
    This routine actually moves the kernel image
    From: $realimageloc/$kimage-$version (/boot/vmlinuz-2.6.12)
    To:   $image_dest/$kimage-$version   (/vmlinuz-2.6.12)
    Note that the image is moved to a versioned destination, but ordinary
  symlinks we create otherwise are not normally versioned
  (really_reverse_link): Added.
    Normally called after really_move_image; and only called if we asked for 
    reversed link this routine reverses the symbolic link that is notmally 
    created. Since the real kernel image has been moved over to 
    $image_dest/$kimage-$version. So, this routine links
    From:   $image_dest/$kimage-$version   (/vmlinuz-2.6.12)
    To:     $realimageloc/$kimage-$version (/boot/vmlinuz-2.6.12)
   (move_p): Added
     This routine is invoked if there is a symbolic link in place
     in $image_dest/$kimage -- so a symlink exists in the destination.
     What we are trying to determine is if we need to move the symbolic link over
     to the the .old location
   (really_move_link): Added
     This routine moves the symbolic link around (/vmlinuz ->
     /vmlinuz.old) It pays attention to whether we should the fact
     whether we should be using hard links or not.
   (handle_missing_link): Added
     This routine handles a request to do symlinks, but there is no
     symlink file already there.  Either we are supposed to use copy, or
     we are installing on a pristine system, or the user does not want
     symbolic links at all.  We use a configuration file to tell the last
     two cases apart, creating a config file if needed.
   (handle_non_symlinks): Added
     This routine handles the rest of the cases, where the user has
     requested non-traditional handling, like using cp, or reverse
     symlinks, or hard links. 
   (image_magic): Refactored several subroutines out of this one, and
     made the variable names saner.

